/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package DataConverters.utils;

import common.gui.progress.IProgressItem;

/**
 *
 * @author Nobody
 */
public class ProgressConsole implements IProgressItem {

    private int maximum;

    public void afterReading() {
        System.out.println("Reading finished");
    }

    public void beforeReading() {
        System.out.println("Ready to reading...");
    }

    public int getMaximum() {
        return maximum;
    }

    public void readed(double readed) {
        readed = readed / getMaximum();
        System.out.println(String.format("%.0f %% readed so far...", readed*100));
    }

    public void setMaximum(int maximum) {
        this.maximum = maximum;
    }

    public void setVisible(boolean status) {
    }

    public void dispose() {
    }
}
